Dynomotion

Group: DynoMotion Message: 754 From: karmannelectric Date: 11/9/2010
Subject: Anyone talk to KMotion with LabVIEW?
Hello,
I'm considering using my older KMotion board with LabVIEW to control a gantry type machine, but not for CNC use. I'm not a software expert by any means, but I've been able to get what I need done in LabVIEW. For the most part I want to be able to set up accel and max speed parameters for some stepper motors, tell the motors where to go, and find out when they get there. What path they take to get there is not very important, for the most part. Shouldn't be too hard but...

Thanks for your time,

- Steven Ciciora
Group: DynoMotion Message: 755 From: Tom Kerekes Date: 11/9/2010
Subject: Re: Anyone talk to KMotion with LabVIEW?
Hi Steven,
 
I'm not familiar with LabVIEW or know of anyone using it with KMotion.  Do you know how to interface it to a C++ DLL and pass and return a string (char *) ?  If so you can probably get by by just sending "Move0=XX" and "CheckDone0" Console commands.
 
Another method might be to load the VCP (virtual com port) FTDI drivers for the USB chip we use.  I would expect LabView has a method of sending commands to a Serial Com Port you could then use.
 
Regards
TK

Group: DynoMotion Message: 756 From: cncman172 Date: 11/9/2010
Subject: Re: Anyone talk to KMotion with LabVIEW?
Tom, Steven

One of the most common interfaces with LabView software a GPIB interface which is a standard for many kinds of electronic instruments. It can also talk over other links like RS232 and USB if you have the right LabView drivers.

Russ Larson


--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Steven,
>
> I'm not familiar with LabVIEW or know of anyone using it with KMotion.  Do you
> know how to interface it to a C++ DLL and pass and return a string (char *) ? 
> If so you can probably get by by just sending "Move0=XX" and
> "CheckDone0" Console commands.
>
> Another method might be to load the VCP (virtual com port) FTDI drivers for the
> USB chip we use.  I would expect LabView has a method of sending commands to
> a Serial Com Port you could then use.
>
> Regards
> TK
>
>
>
>
> ________________________________
> From: karmannelectric <steve@...>
> To: DynoMotion@yahoogroups.com
> Sent: Tue, November 9, 2010 2:04:00 PM
> Subject: [DynoMotion] Anyone talk to KMotion with LabVIEW?
>
>  
> Hello,
> I'm considering using my older KMotion board with LabVIEW to control a gantry
> type machine, but not for CNC use. I'm not a software expert by any means, but
> I've been able to get what I need done in LabVIEW. For the most part I want to
> be able to set up accel and max speed parameters for some stepper motors, tell
> the motors where to go, and find out when they get there. What path they take to
> get there is not very important, for the most part. Shouldn't be too hard but...
>
> Thanks for your time,
>
> - Steven Ciciora
>
Group: DynoMotion Message: 757 From: karmannelectric Date: 11/10/2010
Subject: Re: Anyone talk to KMotion with LabVIEW?
Tom,
Thanks for the quick reply. I know C, but for embedded processors. Which is why I like LabVIEW; it's easier for me to make user interfaces in labVIEW. My recent user interface experience in C is usually through buttons, LEDs, serial ports, and LCD displays :-)

I know that LabVIEW can interface to DLLs, but that's something I've never done. I was hoping to find someone who's done it before to offer some hints. I think I can find someone who can help me on the LabVIEW end of things; I assume there is a .DLL that is installed when I install the KMotion software? Is it obvious (to someone who knows what they are talking about) what it's name is, and where it's located?

As for the serial port option; I understand serial ports well. I've talked to things with FTDI chips via LabVIEW; they have always showed up as a standard serial port. Is there a summary of the serial commands somewhere?

This has been enough encouragement for me to install the latest software today and see what I can make it do.

Thanks again!

Steven Ciciora


--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Steven,
>
> I'm not familiar with LabVIEW or know of anyone using it with KMotion.  Do you
> know how to interface it to a C++ DLL and pass and return a string (char *) ? 
> If so you can probably get by by just sending "Move0=XX" and
> "CheckDone0" Console commands.
>
> Another method might be to load the VCP (virtual com port) FTDI drivers for the
> USB chip we use.  I would expect LabView has a method of sending commands to
> a Serial Com Port you could then use.
>
> Regards
> TK
>
>
>
>
> ________________________________
> From: karmannelectric <steve@...>
> To: DynoMotion@yahoogroups.com
> Sent: Tue, November 9, 2010 2:04:00 PM
> Subject: [DynoMotion] Anyone talk to KMotion with LabVIEW?
>
>  
> Hello,
> I'm considering using my older KMotion board with LabVIEW to control a gantry
> type machine, but not for CNC use. I'm not a software expert by any means, but
> I've been able to get what I need done in LabVIEW. For the most part I want to
> be able to set up accel and max speed parameters for some stepper motors, tell
> the motors where to go, and find out when they get there. What path they take to
> get there is not very important, for the most part. Shouldn't be too hard but...
>
> Thanks for your time,
>
> - Steven Ciciora
>
Group: DynoMotion Message: 760 From: Tom Kerekes Date: 11/10/2010
Subject: Re: Anyone talk to KMotion with LabVIEW?
Hi Steven,
 
Probably your best approach is to communicate to KMotion as a Virtual Com Port and send Console Screen Script commands.
 
See:
 
 
We use the FTDI USB chip.  There are basically two drivers available either as a DLL or as a VCP.  We don't normally load the VCP driver.  I think you can go into device manager and then in the driver there is a checkbox that says Load VCP driver.  There is a lot of information at the FTDI site.  With the VCP loaded you can test by using HyperTerminal, connect as a Serial Port and enter a Command such as "Version".
 
Good luck!
TK